import Vue from 'vue'
import App from './App.vue'
import vuetify from './plugins/vuetify'
import VueRouter from "vue-router"
import router from "./router"
import store from "./store"

Vue.config.productionTip = false
Vue.use(VueRouter)

// 设置避免recall
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function(location) {
    return originalPush.call(this, location).catch(err => err)
}

new Vue({
    router,
    store,
    vuetify,
    render: h => h(App)
}).$mount('#app')